package com;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.Arrays;
import java.util.List;

/**
 * @author Fang Ruichuan
 * @date 2022-10-05 10:54
 */
@SpringBootTest
public class SuperClassDemo extends BaseClass {

    @Test
    public void test() {
        List<String> list = Arrays.asList("aaa", "bbb", "ccc");
        list.forEach(super::print);
    }
}

class BaseClass {
    public void print(String content) {
        System.out.println(content);
    }
}
